package com.pox.guli.service.edu.feign.fallback;

import com.pox.guli.common.base.result.R;
import com.pox.guli.service.edu.feign.OssFeignService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

/**
 * @Author PoX21s
 * @Date: 2022/6/3 13:28
 * @Version 1.0
 */

@Service
@Slf4j
public class OssFileServiceFallBack implements OssFeignService {

    @Override
    public R testFeign() {
        log.info("testFeign方法的服务降级。");
        return R.error().message("testFeign方法的服务降级。");
    }

    @Override
    public R removeFile(String url) {
        log.info("removeFile方法的服务降级");
        return R.error().message("removeFile方法的服务降级。");
    }
}
